<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ taglib uri="/assistant.tld" prefix="at"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>家庭理财</title>
<at:res base="webRoot"/>
<at:res css="/res/scripts/yui/reset-fonts-grids/reset-fonts-grids.css" />
<at:res css="/res/scripts/yui/layout/assets/layout-core.css" />
<at:res css="/res/scripts/yui/datatable/assets/skins/sam/datatable.css" />
<at:res css="/res/scripts/yui/button/assets/skins/sam/button.css" />
<at:res css="/res/scripts/yui/container/assets/skins/sam/container.css" />
<at:res css="/res/themes/default/css/assistant.css" />

<at:res js="/res/scripts/yui/yahoo-dom-event/yahoo-dom-event.js" />
<at:res js="/res/scripts/yui/connection/connection-min.js" />
<at:res js="/res/scripts/yui/element/element-min.js" />
<at:res js="/res/scripts/yui/datasource/datasource-min.js" />
<at:res js="/res/scripts/yui/button/button-min.js" />
<at:res js="/res/scripts/yui/calendar/calendar-min.js" />
<at:res js="/res/scripts/yui/dragdrop/dragdrop-min.js" />
<at:res js="/res/scripts/yui/datatable/datatable-min.js" />
<at:res js="/res/scripts/yui/container/container-min.js" />

<at:res js="/res/scripts/calendar/WdatePicker.js" />
</head>
<body class="yui-skin-sam">
<div id="main">
	<div id="hd" style="text-align: left">
	    <button type="button" id="btn_in" name="btn_in">收入</button>
	    <button type="button" id="btn_out" name="btn_out">支出</button>
	    <button type="button" id="btn_access" name="btn_access">存/取款</button>
	    <button type="button" id="btn_transfer" name="btn_transfer">还信用卡/转账</button>
	    <button type="button" id="btn_debt" name="btn_debt">借入/借出</button>
    </div>
    <div id="bd" style="text-align: left">
		<div id="grid"></div>
	</div>
</div>
<div id="dialog_in" style="display: none">
	<div class="hd" id="in_title">新增收入</div>
	<div class="bd">
		<form method="POST" action="hcm/tally/save?t=in">
		<table cellspacing="0" class="yui-skin-sam noborder_table">
		<tbody>
			<tr>
				<th width="33%"><label for="in_dealDate"><font color="#FF0000">*&nbsp;</font>交易日期:</label></th>
				<td width="33%"><input type="text" id="in_dealDate" name="in_dealDate" maxlength="10" onclick="WdatePicker()" readonly="readonly"/>
					<input type="hidden" id="in_id" name="in_id" value="-1"/>
				</td>
				<td width="33%" class="memoText">格式：yyyy-MM-dd</td>
			</tr>
			<tr>
				<th><label for="in_inoutItem"><font color="#FF0000">*&nbsp;</font>收支项目:</label></th>
				<td>
					<select id="in_inoutItem" name="in_inoutItem" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="in_money"><font color="#FF0000">*&nbsp;</font>收入金额:</label></th>
				<td><input type="text" id="in_money" name="in_money" maxlength="10" class="digital" onblur="moneyOnblur('in_money','in_checkMoneyAlert')"/></td>
				<td class="memoText"><span id="in_checkMoneyAlert" style="color: #FF0000"></span></td>
			</tr>
			<tr>
				<th><label for="in_account"><font color="#FF0000">*&nbsp;</font>收入账户:</label></th>
				<td>
					<select id="in_account" name="in_account" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="in_relationUser"><font color="#FF0000">*&nbsp;</font>收入人:</label></th>
				<td>
					<select id="in_relationUser" name="in_relationUser" style="width: 100%">
					</select>
				</td>
				<td class="memoText">产生此收支项目的人</td>
			</tr>
			<tr>
				<th><label for="in_memo">备注:</label></th>
				<td><textarea id="in_memo" name="in_memo" rows="2" cols="18"></textarea></td>
				<td class="memoText"></td>
			</tr>
		</tbody>
		</table>
		</form>
	</div>
</div>
<div id="dialog_out" style="display: none">
	<div class="hd" id="out_title">新增支出</div>
	<div class="bd">
		<form method="POST" action="hcm/tally/save?t=out">
		<table cellspacing="0" class="yui-skin-sam noborder_table">
		<tbody>
			<tr>
				<th width="33%"><label for="out_dealDate"><font color="#FF0000">*&nbsp;</font>交易日期:</label></th>
				<td width="33%"><input type="text" id="out_dealDate" name="out_dealDate" maxlength="10" onclick="WdatePicker()" readonly="readonly"/>
					<input type="hidden" id="out_id" name="out_id" value="-1"/>
				</td>
				<td width="33%" class="memoText">格式：yyyy-MM-dd</td>
			</tr>
			<tr>
				<th><label for="out_inoutItem"><font color="#FF0000">*&nbsp;</font>收支项目:</label></th>
				<td>
					<select id="out_inoutItem" name="out_inoutItem" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="out_money"><font color="#FF0000">*&nbsp;</font>支出金额:</label></th>
				<td><input type="text" id="out_money" name="out_money" maxlength="10" class="digital" onblur="moneyOnblur('out_money','out_checkMoneyAlert')"/></td>
				<td class="memoText"><span id="out_checkMoneyAlert" style="color: #FF0000"></span></td>
			</tr>
			<tr>
				<th><label for="out_account"><font color="#FF0000">*&nbsp;</font>支出账户:</label></th>
				<td>
					<select id="out_account" name="out_account" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="out_relationUser"><font color="#FF0000">*&nbsp;</font>支出人:</label></th>
				<td>
					<select id="out_relationUser" name="out_relationUser" style="width: 100%">
					</select>
				</td>
				<td class="memoText">产生此收支项目的人</td>
			</tr>
			<tr>
				<th><label for="out_memo">备注:</label></th>
				<td><textarea id="out_memo" name="out_memo" rows="2" cols="18"></textarea></td>
				<td class="memoText"></td>
			</tr>
		</tbody>
		</table>
		</form>
	</div>
</div>
<div id="dialog_access" style="display: none">
	<div class="hd" id="access_title">存取款</div>
	<div class="bd">
		<form method="POST" action="hcm/tally/save?t=access">
		<table cellspacing="0" class="yui-skin-sam noborder_table">
		<tbody>
			<tr>
				<th width="33%"><label for="access_dealDate"><font color="#FF0000">*&nbsp;</font>交易日期:</label></th>
				<td width="33%"><input type="text" id="access_dealDate" name="access_dealDate" maxlength="10" onclick="WdatePicker()" readonly="readonly"/>
					<input type="hidden" id="access_id" name="access_id" value="-1"/>
				</td>
				<td width="33%" class="memoText">格式：yyyy-MM-dd</td>
			</tr>
            <tr>
				<th>
					<input type="radio" id="access_inoutItem" name="access_inoutItem" value="1"/>取款
					<input type="radio" id="access_inoutItem" name="access_inoutItem" value="2" checked/>存款
				</th>
				<td>
					金额:<input type="text" id="access_money" name="access_money" maxlength="10" class="digital" onblur="moneyOnblur('access_money','access_checkMoneyAlert')"/>
				</td>
				<td class="memoText"><span id="access_checkMoneyAlert" style="color: #FF0000"></span></td>
			</tr>
			<tr>
				<th><label for="access_cash_account"><font color="#FF0000">*&nbsp;</font>现金账户:</label></th>
				<td>
					<select id="access_cash_account" name="access_cash_account" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="access_bank_account"><font color="#FF0000">*&nbsp;</font>银行账户:</label></th>
				<td>
					<select id="access_bank_account" name="access_bank_account" style="width: 100%">
						<option value="-1" selected="selected">请选择……</option>
					</select>
				</td>
				<td class="memoText"></td>
			</tr>
			<tr>
				<th><label for="access_relationUser"><font color="#FF0000">*&nbsp;</font>存/取款人:</label></th>
				<td>
					<select id="access_relationUser" name="access_relationUser" style="width: 100%">
					</select>
				</td>
				<td class="memoText">产生此收支项目的人</td>
			</tr>
			<tr>
				<th><label for="access_memo">备注:</label></th>
				<td><textarea id="access_memo" name="access_memo" rows="2" cols="18"></textarea></td>
				<td class="memoText"></td>
			</tr>
		</tbody>
		</table>
		</form>
	</div>
</div>
</body>
</html>
<at:res js="/res/scripts/assistant.js" />
<at:res js="/jsp/my/assistant/homecashmanager/tally/IndexTally.js" />
